package com.welson.db.cryptor.annotation;

import com.welson.db.cryptor.enums.CryptOperation;

import java.lang.annotation.*;

/**
 * 数据库字段加解密注解
 * @author welson
 */
@Target({ElementType.FIELD, ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CryptField {
    /**
     * 加解密操作类型
     */
    CryptOperation operation() default CryptOperation.BOTH;

}